package nxu.it;

import jakarta.enterprise.context.ApplicationScoped;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

@ApplicationScoped
public class TokenService {
    private static final DateTimeFormatter fmt = DateTimeFormatter.ofPattern("yyyyMMdd");

    public String generateToken() {
        return fmt.format(LocalDate.now());
    }
}
